// 设置数据结构
const { Schema, model } = require('mongoose');
const userSchema = new Schema({
    name:String,
    pass:String,
    propertyName:String,
    avatar:String,
    IDnumber:String,
    age:String,
    avatar:String,
    education:String,
    into_time:String,
    phone:String,
    role:String,
    sex:String,
    uname:String,
    write_time:String 
}, { versionKey: false }); // 不加versionKey 添加的数据会自动添加版本号
// 设置数据模型
module.exports.userModel = model('userModel', userSchema, 'user');